package com.matt.foundation.vo;

import lombok.Data;


/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/8/2
 * *******************************
 */
@Data
public class ResourceListVo {

    private String resourceUrl;

    private String resourceName;

    private String comment;

    private String pid;

    private String lvl;

    public static ResourceListVo of(Object[] objects) {
        ResourceListVo vo = new ResourceListVo();
        vo.setResourceName(objects[0] == null ? "" : objects[0].toString());
        vo.setResourceUrl(objects[1] == null ? "" : objects[1].toString());
        vo.setLvl(objects[2] == null ? "" : objects[2].toString());
        vo.setPid(objects[3] == null ? "" : objects[3].toString());
        vo.setComment(objects[4] == null ? "" : objects[4].toString());
        return vo;
    }
}
